-- GENERATED SPELL FOR [Eye Tentacle] --


function spell0_15726(pUnit, Event) --@Ground Rupture,Self--
pUnit:FullCastSpellOnTarget(26139,pUnit)
pUnit:RegisterEvent('Sorts_15726', 575, 1)
end

function spell1_15726(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(26143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15726', 10000, 1)
end

function Sorts_15726(pUnit, Event)
local choix_sorts_15726 = math.random(0, 1)
if choix_sorts_15726 == 0 then
pUnit:RegisterEvent('spell0_15726', 1, 1)
end
if choix_sorts_15726 == 1 then
pUnit:RegisterEvent('spell1_15726', 1, 1)
end
end

function mob15726_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15726', math.random(1500, 3000), 1)
end

function mob15726_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15726_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15726_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15726, 1, 'mob15726_Action')
RegisterUnitEvent(15726, 2, 'mob15726_Leave')
RegisterUnitEvent(15726, 3, 'mob15726_Kill')
RegisterUnitEvent(15726, 4, 'mob15726_Die')
